<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<script type="text/javascript" src="${initParam.context_root }/script/script.js"></script>
<div class="container">
	<div class="starter-template" style="padding-right: 40px; padding-top: 40px; padding-bottom: 80px">
		<div class="alert alert-info" style="width: 800px; margin: auto" >이곳은 게시글을 작성하는 곳입니다.</div>
			<br>
		<div class="well" style="width: 800px; margin: auto">
			<form role="form" action="/${initParam.context_root }/com/writeContent.do" method="post" onsubmit="return writeFormCheck(this);">
				<input type="hidden" name="id" value="${sessionScope.login_info.id }">
				<input type="hidden" name="nickname" value="${sessionScope.login_info.nickname }">
				
				<div class="form-group">
					<label for="title">제목</label>
					<input type="text" class="form-control" id="title" name="title"> 
				</div>
				<div class="form-group">
					<label for="nickname">작성자 : ${sessionScope.login_info.nickname }</label>
				</div>
				<textarea cols="75" rows="15" class="form-control" name="content"></textarea>
				<br><br>
				<button type="submit" class="btn btn-primary">전송</button>
				<button type="reset" class="btn btn-danger">초기화</button>
				<button type="button" class="btn btn-warning"
							onclick="location.href='/${initParam.context_root  }/com/list.do?no=${requestScope.comBoard.no}&page=${param.page}'">목록</button>
			
			</form>
		</div>
	</div>
</div>
 